import cookielib, urllib2, urllib
import re
def get_url_content(url_get):
    cookie_filename = 'cookie.cie'
    ckjar = cookielib.MozillaCookieJar()
    ckjar.load(cookie_filename)
    ckproc = urllib2.HTTPCookieProcessor(ckjar)
    opener = urllib2.build_opener(ckproc)

    request = urllib2.Request(url_get)
    request.add_header('User-Agent', 'Mozilla/5.0')
    content = opener.open(request).read()
    return content
    
def is_match(s, regs):
    is_matched = False
    for reg in regs:
        match = None
        try:
            match = re.match(reg, s)
        except:
            pass
        if match:
            is_matched = True
            
    return is_matched
